// import { DECREMENT, INCREMENT, INCREMENT_ASYNC } from "../const/counter.const"

// export const increment = payload => ({type: INCREMENT, payload})
// export const decrement = payload => ({type: DECREMENT, payload})

// export const increment_async = payload => ({type: INCREMENT_ASYNC, payload})

// export const increment_async = payload => dispatch => {
//     setTimeout(() => {
//         dispatch(increment(payload))
//     }, 2000);
// } 

import { createAction } from 'redux-actions'

// 不需要再将字符串抽象成常量保存
export const increment = createAction('increment')
export const decrement = createAction('decrement')